package com.zxy.service.impl;

import com.zxy.mapper.StorageMapper;
import com.zxy.service.StorageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: Zxy
 * @description:
 * @date: 2021-08-21 13:42
 */
@Service
public class StorageServiceImpl implements StorageService {

    @Resource
    private StorageMapper storageMapper;

    @Override
    public void decrease(Long productId, Integer count) {
        storageMapper.decrease(productId,count);
    }
}
